<template>
	<div>
		<h2>欢迎登陆考试系统</h2>
		<div class="info">
			<p>登陆账号为：{{ username }}</p>
			<p>您的身份是：{{ role }}</p>
		</div>
	</div>
</template>

<script>
export default {
	props: {
		username: {
			type: String,
			default: "小华",
		},
		role: {
			type: String,
			default: "管理员",
		},
	},
};
</script>

<style lang="scss" scoped>
h2 {
	margin: 50px;
}
.info {
	margin-left: 50px;
	line-height: 2em;
}
</style>